.class public Lcom/instagram/ui/d/h;
.super Lcom/instagram/ui/c/a;
.source "SimplePreferenceAdapter.java"


# instance fields
.field private a:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1
    .parameter

    .prologue
    .line 30
    invoke-direct {p0, p1}, Lcom/instagram/ui/c/a;-><init>(Landroid/content/Context;)V

    .line 27
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/ui/d/h;->a:Z

    .line 31
    return-void
.end method

.method private a(I)Z
    .locals 1
    .parameter

    .prologue
    .line 144
    invoke-virtual {p0, p1}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/ui/d/a;

    if-nez v0, :cond_0

    invoke-virtual {p0, p1}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/ui/d/c;

    if-eqz v0, :cond_1

    :cond_0
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_1
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method protected a(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 35
    invoke-virtual {p0, p2}, Lcom/instagram/ui/d/h;->getItemViewType(I)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 58
    :pswitch_0
    invoke-static {p1}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;)Landroid/view/View;

    move-result-object v0

    :goto_0
    return-object v0

    .line 37
    :pswitch_1
    invoke-static {p1, v2, v2}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;ZZ)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 39
    :pswitch_2
    invoke-static {p1, v1, v2}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;ZZ)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 41
    :pswitch_3
    invoke-static {p1, v1, v1}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;ZZ)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 43
    :pswitch_4
    invoke-static {p1, v1}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;Z)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 45
    :pswitch_5
    invoke-static {p1, v2}, Lcom/instagram/ui/d/f;->a(Landroid/content/Context;Z)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 47
    :pswitch_6
    invoke-static {p1, v2}, Lcom/instagram/ui/d/f;->b(Landroid/content/Context;Z)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 49
    :pswitch_7
    invoke-static {p1, v1}, Lcom/instagram/ui/d/f;->b(Landroid/content/Context;Z)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 51
    :pswitch_8
    invoke-static {p1, p3}, Lcom/instagram/ui/d/d;->a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 53
    :pswitch_9
    new-instance v0, Landroid/view/View;

    invoke-direct {v0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    goto :goto_0

    .line 55
    :pswitch_a
    invoke-static {p1, p3}, Lcom/instagram/ui/d/i;->a(Landroid/content/Context;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    goto :goto_0

    .line 35
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_5
        :pswitch_4
        :pswitch_6
        :pswitch_0
        :pswitch_8
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_9
        :pswitch_a
        :pswitch_7
    .end packed-switch
.end method

.method protected a(Landroid/view/View;Landroid/content/Context;I)V
    .locals 3
    .parameter
    .parameter
    .parameter

    .prologue
    .line 64
    invoke-virtual {p0, p3}, Lcom/instagram/ui/d/h;->getItemViewType(I)I

    move-result v0

    packed-switch v0, :pswitch_data_0

    .line 78
    :pswitch_0
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/ui/d/g;

    invoke-virtual {p0, p3}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/ui/d/b;

    iget-boolean v2, p0, Lcom/instagram/ui/d/h;->a:Z

    invoke-static {p1, v0, v1, v2}, Lcom/instagram/ui/d/f;->a(Landroid/view/View;Lcom/instagram/ui/d/g;Lcom/instagram/ui/d/b;Z)V

    .line 86
    :goto_0
    :pswitch_1
    return-void

    .line 66
    :pswitch_2
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/ui/d/e;

    invoke-virtual {p0, p3}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/ui/d/a;

    invoke-static {v0, v1}, Lcom/instagram/ui/d/d;->a(Lcom/instagram/ui/d/e;Lcom/instagram/ui/d/a;)V

    goto :goto_0

    .line 71
    :pswitch_3
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/ui/d/j;

    invoke-virtual {p0, p3}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/instagram/ui/d/k;

    invoke-static {v0, v1}, Lcom/instagram/ui/d/i;->a(Lcom/instagram/ui/d/j;Lcom/instagram/ui/d/k;)V

    goto :goto_0

    .line 64
    nop

    :pswitch_data_0
    .packed-switch 0x4
        :pswitch_2
        :pswitch_0
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_3
    .end packed-switch
.end method

.method public a(Ljava/util/Collection;)V
    .locals 1
    .parameter

    .prologue
    .line 106
    iget-object v0, p0, Lcom/instagram/ui/d/h;->g:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 107
    iget-object v0, p0, Lcom/instagram/ui/d/h;->g:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 108
    invoke-virtual {p0}, Lcom/instagram/ui/d/h;->notifyDataSetChanged()V

    .line 109
    return-void
.end method

.method public a(Z)V
    .locals 0
    .parameter

    .prologue
    .line 154
    iput-boolean p1, p0, Lcom/instagram/ui/d/h;->a:Z

    .line 155
    return-void
.end method

.method public a([Ljava/lang/CharSequence;)V
    .locals 6
    .parameter

    .prologue
    const/4 v1, 0x0

    .line 99
    array-length v2, p1

    move v0, v1

    :goto_0
    if-ge v0, v2, :cond_0

    aget-object v3, p1, v0

    .line 100
    iget-object v4, p0, Lcom/instagram/ui/d/h;->g:Ljava/util/List;

    new-instance v5, Lcom/instagram/ui/d/b;

    invoke-direct {v5, v3, v1}, Lcom/instagram/ui/d/b;-><init>(Ljava/lang/CharSequence;Z)V

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 99
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 102
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/ui/d/h;->notifyDataSetChanged()V

    .line 103
    return-void
.end method

.method public areAllItemsEnabled()Z
    .locals 1

    .prologue
    .line 90
    const/4 v0, 0x0

    return v0
.end method

.method public getItemViewType(I)I
    .locals 2
    .parameter "position"

    .prologue
    const/4 v0, 0x1

    .line 118
    invoke-virtual {p0, p1}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Lcom/instagram/ui/d/a;

    if-eqz v1, :cond_1

    .line 119
    const/4 v0, 0x4

    .line 139
    :cond_0
    :goto_0
    return v0

    .line 120
    :cond_1
    invoke-virtual {p0, p1}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Lcom/instagram/ui/d/c;

    if-eqz v1, :cond_2

    .line 121
    const/16 v0, 0x8

    goto :goto_0

    .line 122
    :cond_2
    invoke-virtual {p0, p1}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Lcom/instagram/ui/d/k;

    if-eqz v1, :cond_3

    .line 123
    const/16 v0, 0x9

    goto :goto_0

    .line 124
    :cond_3
    if-nez p1, :cond_6

    .line 126
    invoke-virtual {p0}, Lcom/instagram/ui/d/h;->getCount()I

    move-result v1

    if-eq v1, v0, :cond_4

    add-int/lit8 v0, p1, 0x1

    invoke-direct {p0, v0}, Lcom/instagram/ui/d/h;->a(I)Z

    move-result v0

    if-eqz v0, :cond_5

    :cond_4
    const/4 v0, 0x5

    goto :goto_0

    :cond_5
    const/4 v0, 0x0

    goto :goto_0

    .line 127
    :cond_6
    add-int/lit8 v1, p1, -0x1

    invoke-direct {p0, v1}, Lcom/instagram/ui/d/h;->a(I)Z

    move-result v1

    if-eqz v1, :cond_8

    invoke-virtual {p0}, Lcom/instagram/ui/d/h;->getCount()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    if-eq p1, v1, :cond_7

    add-int/lit8 v1, p1, 0x1

    invoke-direct {p0, v1}, Lcom/instagram/ui/d/h;->a(I)Z

    move-result v1

    if-eqz v1, :cond_8

    .line 129
    :cond_7
    const/4 v0, 0x6

    goto :goto_0

    .line 130
    :cond_8
    add-int/lit8 v1, p1, -0x1

    invoke-direct {p0, v1}, Lcom/instagram/ui/d/h;->a(I)Z

    move-result v1

    if-eqz v1, :cond_9

    add-int/lit8 v1, p1, 0x1

    invoke-virtual {p0, v1}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    instance-of v1, v1, Lcom/instagram/ui/d/k;

    if-eqz v1, :cond_9

    .line 131
    const/4 v0, 0x7

    goto :goto_0

    .line 132
    :cond_9
    add-int/lit8 v1, p1, -0x1

    invoke-direct {p0, v1}, Lcom/instagram/ui/d/h;->a(I)Z

    move-result v1

    if-nez v1, :cond_0

    .line 134
    invoke-virtual {p0}, Lcom/instagram/ui/d/h;->getCount()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    if-eq p1, v0, :cond_a

    add-int/lit8 v0, p1, 0x1

    invoke-direct {p0, v0}, Lcom/instagram/ui/d/h;->a(I)Z

    move-result v0

    if-eqz v0, :cond_b

    .line 135
    :cond_a
    const/4 v0, 0x2

    goto :goto_0

    .line 136
    :cond_b
    add-int/lit8 v0, p1, 0x1

    invoke-virtual {p0, v0}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/ui/d/k;

    if-eqz v0, :cond_c

    .line 137
    const/16 v0, 0xa

    goto :goto_0

    .line 139
    :cond_c
    const/4 v0, 0x3

    goto/16 :goto_0
.end method

.method public getViewTypeCount()I
    .locals 1

    .prologue
    .line 113
    const/16 v0, 0xa

    return v0
.end method

.method public isEnabled(I)Z
    .locals 1
    .parameter "position"

    .prologue
    .line 95
    invoke-direct {p0, p1}, Lcom/instagram/ui/d/h;->a(I)Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p0, p1}, Lcom/instagram/ui/d/h;->getItem(I)Ljava/lang/Object;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/ui/d/k;

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
